/* 登录页面整体容器 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* 背景样式 */
.login-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../assets/home-bg.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
  transition: transform 0.3s ease-out;
  transform: translate(0, 0);
  z-index: 0;
}

/* 内容层 */
.login-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem;
}

/* 登录卡片样式 */
.login-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 480px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

/* 标题样式 */
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.login-header p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* 表单容器 */
.login-form-wrapper {
  margin-bottom: 2rem;
}

/* 表单项样式 */
.login-form .ant-form-item,
.register-form .ant-form-item {
  margin-bottom: 24px;
}

/* 输入框样式 */
.input-animate {
  transition: all 0.3s;
  border-radius: 8px;
}

.input-animate:hover,
.input-animate:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.login-button,
.register-button {
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1890ff, #096dd9);
  border: none;
  transition: all 0.3s;
}

.button-animate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
  background: linear-gradient(135deg, #40a9ff, #1890ff);
}

/* 忘记密码链接 */
.forgot-password {
  text-align: right;
  margin-bottom: 16px;
}

.login-form-forgot {
  color: #1890ff;
  transition: all 0.3s;
}

.login-form-forgot:hover {
  color: #40a9ff;
  text-decoration: underline;
}

/* 页脚样式 */
.login-footer {
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .login-card {
    padding: 1.5rem;
  }

  .login-header h1 {
    font-size: 24px;
  }
}

/* Tab 样式定制 */
.login-form-wrapper .ant-tabs-nav::before {
  border-bottom: none;
}

.login-form-wrapper .ant-tabs-tab {
  padding: 12px 0;
  font-size: 16px;
}

.login-form-wrapper .ant-tabs-tab+.ant-tabs-tab {
  margin-left: 32px;
}

.login-form-wrapper .ant-tabs-ink-bar {
  height: 3px;
  background: linear-gradient(90deg, #1890ff, #096dd9);
}